package com.example.shirospringboot.dao;

import com.example.shirospringboot.pojo.User;
import org.apache.ibatis.annotations.Mapper;


@Mapper
public interface UserDao {
    //注册用户
    void save(User user);

    //查找用户
    User findByName(String name);

    //根据用户名查询角色拥有哪些权限
    User findByUserName(String name);
}
